[][src]Crate cl_traits

Collection Traits (cl-traits)

Macros

create_and_impl_marker_trait

Creates a marker trait $trait_name with or without bounds.

create_marker_trait

Creates a marker trait $trait_name with or without bounds.

Structs

ArrayWrapper

Arbitrary length array wrapper. This structure is necessary for third-party and std implementations.

Traits

Capacity

Has some sort of storage that holds a maximum number of elements.

Clear

Has some sort of storage that can be cleared.

Length

Has some sort of storage that holds a certain number of elements.

Push

Has some way to push an element into some sort of storage.

Swap

Has some way to swap elements of some sort of storage.

Truncate

Has some way to truncate some sort of storage.

Functions

create_array

Creates an array [T; N] where each array element T is returned by the cb call.